import request from '@/utils/request';

export async function getFileInfoByPage (params: any) {
    return request('/api/project/getFileInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addFileInfo (params: any) {
    return request('/api/project/addFileInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateFileInfo (params: any) {
    return request('/api/project/updateFileInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delFileInfo (params: any) {
    return request('/api/project/delFileInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportFileInfo(params: any) {
    return request('/api/project/exportFileInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getFileInfoByPage, addFileInfo, updateFileInfo, delFileInfo, exportFileInfo }
